#include<stdio.h>
int main()
{
    char a[100],b[100];

    while(~scanf("%s%s",a,b))
    {
    if(strcmp(a,"stone")==0&&strcmp(b,"scissor")==0
       ||strcmp(a,"scissor")==0&&strcmp(b,"bu")==0
       ||strcmp(a,"bu")==0&&strcmp(b,"stone")==0)
        puts("win");
    else if  (strcmp(b,"stone")==0&&strcmp(a,"scissor")==0
       ||strcmp(b,"scissor")==0&&strcmp(a,"bu")==0
       ||strcmp(b,"bu")==0&&strcmp(a,"stone")==0)
        puts("lose");
    else
        puts("draw");

    }
    return 0;
}
